package biz;

import java.util.HashMap;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

/**
 * 权限检查business logic
 */
public class AuthCheckBizImpl extends SqlMapClientDaoSupport implements AuthCheckBiz {

	public long findAuthByPageNo(String pageNo) {
		Map<String, Object> map = new HashMap<String, Object>();
		// pageNo
		map.put("pageNo", pageNo);
		String auth = (String) getSqlMapClientTemplate().queryForObject("auth.selectAuthByPageNo", map);
		if (auth != null) {
			return Long.parseLong(auth);
		} else {
			return 0;
		}
	}
}
